import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/GetList',
    method: 'get',
    kvs
  })
}

export function getInfos(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/GetDetailById',
    method: 'get',
    kvs
  })
}

export function doAdd(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/Add',
    method: 'POST',
    kvs
  })
}

export function doUpdate(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/Update',
    method: 'POST',
    kvs
  })
}

export function doDelete(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/Delete',
    method: 'POST',
    kvs
  })
}

export function download(kvs) {
  return request({
    url: 'tdm/download/GetTemplate',
    method: 'get',
    kvs
  })
}

export function getPackageTypeList(kvs) {
  return request({
    url: '/tdm/SBLIndexConfigMain/GetSBLPackaingFormCode',
    method: 'get',
    kvs
  })
}
